<template>
    <div class="items">
        <img src="@/static/jinbi.jpg" alt="">
        {{ total }}个
    </div>
</template>
<script setup>
import api from '@/api/user.js'
import { ref, onMounted } from 'vue'
onMounted(() => {
    getallcoins();
})
const total = ref();
const getallcoins = async () => {
    const res = await api.getallcoins()
    console.log(res);
    total.value = res.total;
}
</script>
<style lang="scss" scoped>
.items {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-image: url('@/static/back.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    gap: 2rem;
    overflow: hidden;
    overflow-y: auto;
    padding: 3rem;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
color: red;
    img {
        height: 20rem;
        width: 20rem;
    }

}
</style>